package com.zyong.design.pattern.visitor.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: Visitor
 * @author: zyong
 * @create: 2024-03-28 23:20
 */
public interface Visitor {
    /**
     * 对元素ConcreteElementA进行操作
     * @param concreteElementA
     */
    void operate(ConcreteElementA concreteElementA);

    /**
     * 对元素ConcreteElementB进行操作
     * @param concreteElementB
     */
    void operate(ConcreteElementB concreteElementB);
}
